/**
 * @fileOverview
 * @author iNahoo
 * @since 2019/11/15.

 # 神秘商店
 377,117
 503,115
 630,117
 756,116
 377,310
 504,310
 630,310
 756,310

 */

const {run} = require('../../instances');
const {sleep} = require('../../pcr-operation/utils');

run(async (p, s, m) => {

    await m.click(s.getPoint(377, 117, 3, 3));
    await m.click(s.getPoint(503, 115, 3, 3));
    await m.click(s.getPoint(630, 117, 3, 3));
    await m.click(s.getPoint(756, 116, 3, 3));
    await m.click(s.getPoint(377, 305, 3, 1));
    await m.click(s.getPoint(504, 305, 3, 1));
    await m.click(s.getPoint(630, 305, 3, 1));
    await m.click(s.getPoint(756, 305, 3, 1));

    // buy
    await m.click(s.getPoint(676, 331, 50, 3));

    // confirm
    await sleep(1e3);
    await m.click(s.getPoint(482, 356, 30, 3));

});
